package com.booksystem.campuslibrarymanagementsystem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.booksystem.campuslibrarymanagementsystem.commen.request.userquest.BookBorrowrequst.Approval;
import com.booksystem.campuslibrarymanagementsystem.commen.request.userquest.BookReturnrequst.Returnbook;
import com.booksystem.campuslibrarymanagementsystem.commen.result.userresuilt.ReturnTable;
import com.booksystem.campuslibrarymanagementsystem.entity.BorrowApprovalsTable;
import com.booksystem.campuslibrarymanagementsystem.entity.ReturnrequesTable;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

public interface ReturnrequesTableService extends IService<ReturnrequesTable> {
    int add(ReturnrequesTable cc);

    List<ReturnTable> returnlist(@Param("account") String account);
    List<ReturnrequesTable> existsByAccountAndBookidi(String account, int bookid);
    List<ReturnTable> returnliststatus(String account, String approvalstate);
    int deleteByAccountAndBookid(@Param("account") String account, @Param("returnid") int returnid);
    List<BorrowApprovalsTable> ddd(@Param("account") String account, @Param("bookid") int bookid);
    List<ReturnrequesTable> queryByAccount(String account);
    List<ReturnrequesTable> querydislist(String approvalstate);
    void unapproval(@Param("account") String account, @Param("approvalTime") LocalDate approvalTime ,
                    @Param("bookid") String bookid,
                    @Param("Approvalstate")String Approvalstate);
    void onapproval(@Param("account") String account, @Param("approvalTime") LocalDate approvalTime ,
                    @Param("bookid") String bookid,
                    @Param("Approvalstate")String Approvalstate);
}
